
<div class="span12">
	<div style="clear: both;">
	<?php echo form_open_multipart('admincp/checkmoservices'); ?>
		<select name="typesearch">
			<option value="none">Tất cả</option>
			<option value="dest">Đầu số</option>
			<option value=phone>Phone</option>
		</select> <input type="text" size="10" class="field small-field"
			name="contentsearch" /> <input type="submit" class="button"
			name="searchbtt" value="search" />
			<?php echo form_close(); ?>
	</div>
	<div class="box">
		<div class="head">
			<div class="isw-grid"></div>
			<h1>
				Tổng:
				<?php echo number_format($totalsms);?>
				SMS =
				<?php echo number_format($totalsms * 5400);?>
				đồng
			</h1>
			<div class="clear"></div>
		</div>
		<!-- End Box Head -->
		<div style="float:left;clear:both;">
				<div class="left"></div>
				<div class="right">
				<?php echo $pages;?>
				</div>
			</div>
		<!-- Table -->
		<div class="table">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
				<thead>
				<tr> 
					<th width="3%">Đầu số</th>
					<th width="3%">Nội dung</th>
					<th width="5%">Phonenumber</th>
					<th width="5%">Command Code</th>
					<th width="5%">Request ID</th>
					<th width="5%">Ngày</th>
					<th width="5%">Giờ</th>
				</tr></thead>
				<tbody>
				<?php foreach($receivesmo as $morow):?>
				<tr class="odd"> 
					<td><?php echo $morow->dest;?></td>
					<td><?php echo $morow->content;?></td>
					<td><?php echo $morow->phone;?></td>
					<td><?php echo $morow->cmdcode;?></td>
					<td><?php echo $morow->requestId;?></td>
					<td><?php echo $morow->today;?></td>
					<td><?php echo $morow->timenow;?></td>
				</tr>
				<?php endforeach;?>
				</tbody>
			</table>


			<!-- Pagging -->
			<div class="pagging">
				<div class="left"></div>
				<div class="right">
				<?php echo $pages;?>
				</div>
			</div>
			<!-- End Pagging -->

		</div>
		<!-- Table -->

	</div>
	<!-- End Box -->
</div>
